import request from '@/utils/request'

// 登录接口定义
export const loginApi = data => request({
  url: '/sys/login',
  method: 'POST',
  data
})

// 获取用户资料
export const getUserInfoApi = data => request({
  url: '/sys/profile',
  method: 'POST',
  data
})

// 根据id获取用户详情信息
export const userInfoById = id => request({
  url: `/sys/user/${id}`,
  method: 'GET'
})
